package com.jrx.anytxn.param.dto.aviator;

import io.swagger.annotations.ApiModelProperty;

import java.util.Map;

/**
 * @author cjz
 * @date 2018-11-06 17:32
 **/
public class RuleMatchReq {


    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID", example = "0011")
    private String tenantId;


    /**
     * 规则ID
     */
    @ApiModelProperty(value = "编号", example = "1")
    private Long id;

    /**
     * 机构号
     */
    @ApiModelProperty(value = "机构号", example = "0001")
    private String organizationNumber;

    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品号 备注产品规则必传产品号", example = "P88888")
    private String productNumber;

    /**
     * 规则类型
     * 表字段:rule_type
     */
    @ApiModelProperty(value = "规则类型", example = "min_repayment_rule")
    private String ruleType;

    /**
     * 条件Map
     */
    private Map ruleParam;

    public RuleMatchReq(){}

    public RuleMatchReq(String organizationNumber, String productNumber, String ruleType, Map ruleParam,String tenantId) {
        this.organizationNumber = organizationNumber;
        this.productNumber = productNumber;
        this.ruleType = ruleType;
        this.ruleParam = ruleParam;
        this.tenantId=tenantId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrganizationNumber() {
        return organizationNumber;
    }

    public void setOrganizationNumber(String organizationNumber) {
        this.organizationNumber = organizationNumber;
    }

    public String getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(String productNumber) {
        this.productNumber = productNumber;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    public Map getRuleParam() {
        return ruleParam;
    }

    public void setRuleParam(Map ruleParam) {
        this.ruleParam = ruleParam;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }
}
